﻿<tabset class="setting-vote" stop-input-propagation justified="true">
    <tab heading="投票">
        <div class="input_console">
            <div class="modify_area" style="margin-top: 0px;">
                <div>
                    <div class="toupiao_div">
                        <ul class="toupiao_ul">
                            <li class="bottom-line">
                                <b>
                                    投票主题
                                </b>
                                <span class="content">
                                    <input ng-disabled="model.voteOverdue" ng-model="model.toupiao.title"
                                           ng-click="txtdateshow()" type="text" class="txt" placeholder="请输入投票主题" />
                                </span>
                                <span class="toupiaoimg_upload" ng-show="imgsrc">
                                    <img id="uploadtoupiaoimg" style="max-width:100px;max-height:100px;" ng-src="{{imgsrc}}">
                                </span>
                                <span>
                                    <input type="button" style="display:none" ng-click="choosePic()" value="添加照片"
                                           id="addimg" />
                                </span>
                            </li>
                            <li class="bottom-line">
                                <b>
                                    选择模式
                                    <span class="vote-sm-title">
                                        修改选择模式会还原初始化样式
                                    </span>
                                </b>
                                <span>
                                    <span class="content">
                                        <input id="chooseType1" type="radio" name="chooseType" value="r" ng-model="model.toupiao.chooseType"
                                               ng-click="checkboxclick()" ng-disabled="model.voteOverdue" />
                                        <label for="chooseType1">
                                            单选
                                        </label>
                                        <input id="chooseType2" type="radio" name="chooseType" value="c" ng-model="model.toupiao.chooseType"
                                               ng-click="checkboxclick()" ng-disabled="model.voteOverdue" />
                                        <label for="chooseType2">
                                            多选
                                        </label>
                                    </span>
                                    <span id="span_choosecount" ng-if="model.toupiao.chooseType == 'c'">
                                        最多选
                                        <input id="txtChooseChount" type="number" min="1" style="width:50px;"
                                               ng-model="model.toupiao.checkNum" ng-disabled="model.voteOverdue" />
                                        项
                                    </span>
                                </span>
                            </li>
                            <li class="bottom-line">
                                <b>
                                    投票有效期
                                    <span class="vote-sm-title">
                                        提前结束请到用户中心结束投票
                                    </span>
                                </b>
                                <span class="content">
                                    <span>
                                        <input type="text" id="txtdate1" placeholder="开始时间" ng-click="txtdateshow()"
                                               ng-model="model.toupiao.sTime" ng-disabled="model.voteOverdue" />
                                    </span>
                                    <span>
                                        <input type="text" id="txtdate2" style="margin-top: 0px;" placeholder="结束时间"
                                               ng-click="txtdateshow()" ng-model="model.toupiao.eTime" ng-disabled="model.voteOverdue" />
                                    </span>
                                </span>
                            </li>
                            <li>
                                <b>
                                    投票选项
                                    <span class="vote-sm-title">
                                        增加或删除选项会还原初始化样式
                                    </span>
                                </b>
                                <span class="content" style="margin-top: 5px;">
                                    <div id="inputlist">
                                        <ul>
                                            <li ng-repeat="xt in model.toupiao.xtstr">
                                                <input type="text" class="txt" placeholder="选项{{$index+1}}" ng-model="xt.name"
                                                       ng-disabled="model.voteOverdue" />
                                                <span class="close_input" ng-if="$index > 1" ng-click="btnclose(xt)">
                                                </span>
                                            </li>
                                        </ul>
                                        <span id="btnaddtxt" ng-click="btnaddtxt($event)" ng-if="!model.voteOverdue">
                                            +添加选项
                                        </span>
                                    </div>
                                </span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="modal-footer" style="padding-top:0px">
            <a class="btn-main login" style="width: 88px;" ng-click="confirm()">
                确定
            </a>
            <a class="btn-grey0 cancel" style="width: 88px;display:none" ng-click="cancel()">
                取消
            </a>
        </div>
    </tab>
    <tab select="activeTab = 'style'" heading="样式">
        <div id="comp_setting">
            <div class="style_content" ng-include="'scene/console/style.tpl.html'">
            </div>
        </div>
    </tab>
    <tab select="activeTab = 'anim'" heading="动画">
        <div id="comp_setting">
            <div class="style_content" ng-include="'scene/console/anim.tpl.html'">
            </div>
        </div>
    </tab>
</tabset>